<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${site.name} - Powered by JEECMS</title>
<link href="${resSys}/front.css" rel="stylesheet" type="text/css"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<link href="/${res}/css/layout.css" rel="stylesheet" type="text/css"/>
<script src="/${res}/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	Cms.siteFlow("${base}", location.href, document.referrer);
});
</script>
</head>

<body>
[#include "../include/header_top.html"/]
[#include "../include/header_nav.html"/]
<div id="main">
<div class="page2 position1"> 您现在正在浏览： <a href="${base}/">首页</a> &raquo; 网络调查</div>

<!--cjbd_begin-->
<div class="page2 box">
  <div class="w720 fl">
    <div class="box"></div>
    <div class="left_div1 box">
		<div class="w96" style="min-height:800px;">
        	[#if status?? && status!=0]
			<div class="prompt">
			  <dl>
				<dt></dt>
				<dd class="msg">
				  [#if status==1]
					投票ID不能为空
				  [#elseif status==2]
					投票项不能为空  
				  [#elseif status==100]
					投票主题不存在
				  [#elseif status==101]
					投票项不合法
				  [#elseif status==501]
					需要登录才能投票
				  [#elseif status==200]
					投票主题已经关闭
				  [#elseif status==201]
					投票的选项个数大于允许的个数
				  [#elseif status==202]
					投票还没有开始
				  [#elseif status==203]
					投票已经结束
				  [#elseif status==204]
					您已经投过票了，请勿重复投票！<!--，同一会员不能重复投票-->
				  [#elseif status==205]
					您已经投过票，请勿重复投票！了<!--，，同一IP不能重复投票-->
				  [#elseif status==206]
					您已经投过票了，请勿重复投票！<!--，，同一COOKIE不能重复投票-->
				  [#else]
					投票失败  
				  [/#if]
				</dd>
			  </dl>
			</div>
		 
		   [#else]
		    <div class="search_msg">
				投票主题：<span class="red">${vote.title?html}</span>， 总参与人数：<span class="red">${vote.totalCount}</span>
			</div>
			<table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
			[#list vote.subtopics as subTopic]
				<tr>
					<td width="30" height="30" align="center" bgcolor="#F9F9F9">${subTopic_index+1}、</td>
	                <td width="620" height="30" bgcolor="#F9F9F9">
	                	${subTopic.title?html}
	                	[#if subTopic.isText]<a href="${base}/vote_reply_view.jspx?subId=${subTopic.id}" target="_blank">查看回复结果</a>[/#if]
	                </td>
		        </tr>
				[#if subTopic.isRadio||subTopic.isMulti]
				  [#list subTopic.voteItems as item]
	              	  <tr>
		                <td width="30" height="30" align="center" bgcolor="#F9F9F9">${item_index+1}.</td>
		                <td width="620" bgcolor="#F9F9F9">${item.title?html} - (${item.voteCount}票)</td>
		              </tr>
		              <tr>
		                <td height="30">&nbsp;</td>
		                <td>
						<img src="/${res}/img/vote/vote_bar.gif" width="${item.percent}%" height="10px" border="0"/> ${item.percent}%
						</td>
		              </tr>
				  [/#list]
				[/#if]
			[/#list]
			
          </table>
		   [/#if]
		</div>
    </div>
    <div class="left_low"></div>	
  </div>  
  
  <div class="w250 fr">
   进行中调查<br />
    [@cms_vote]
    	${tag_bean.title?html}<br/>
    [/@cms_vote]
    往期调查<br />
    [@cms_vote_list  siteId=site.id]
		[#list tag_list as vote]
			<li><a href="${base}/vote.jspx?voteId=${vote.id}">${vote.title?html}</a>&nbsp;[#if vote.endTime??]${vote.endTime?string("yyyy-MM-dd")}[/#if]</li>
		[/#list]
	[/@cms_vote_list]
  </div>
</div>
<!--cjbd_end-->
</div>
<div id="wrapper">
[#include "../include/footer_links_bar.html"/]
[#include "../include/footer.html"/]
</div>
</body>
</html>